﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="~/Users/Question.aspx.cs" Inherits="Default2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">

    <asp:Repeater ID="Repeater1" runat="server">
    <ItemTemplate>
    <div style="background:#b6b7b0;font-size:medium">
        <asp:Label ID="Label1" runat="server" Text='<%# Eval("Question1") %>'></asp:Label>
    </div>
    <div style="font-size:medium">
        <asp:Repeater ID="Repeater2" runat="server" DataSource = '<%# new DAL().getAnswer(Convert.ToInt32(Eval("QuestionID"))) %>'>
        <ItemTemplate>
            <asp:RadioButton ID="RadioButton1" runat="server" Text='<%# Eval("Answer1").GetType()%>' /><br />
        </ItemTemplate>
        </asp:Repeater>
    </div>
    </ItemTemplate>
    </asp:Repeater>
</asp:Content>

